# ！/home/yang/PythonProjects python
# -*- coding: utf-8 -*-
# author:yang  time:19-7-25 下午4:23


def main():
    for i in range(100, 1000):
        a = i % 10
        b = i // 10 % 10
        c = i // 100
        if ((a**3)+(b**3)+(c**3)) == i:
            print(i)


if __name__ == '__main__':
    main()
